<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditCondicaoPagamentoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditCondicaoPagamentoLabel_idCondicaoPagamento}" for="idCondicaoPagamento" />
                    <h:inputText id="idCondicaoPagamento" value="#{condicaoPagamentoController.selected.idCondicaoPagamento}" title="#{bundle.EditCondicaoPagamentoTitle_idCondicaoPagamento}" required="true" requiredMessage="#{bundle.EditCondicaoPagamentoRequiredMessage_idCondicaoPagamento}"/>
                    <h:outputLabel value="#{bundle.EditCondicaoPagamentoLabel_vezes}" for="vezes" />
                    <h:inputText id="vezes" value="#{condicaoPagamentoController.selected.vezes}" title="#{bundle.EditCondicaoPagamentoTitle_vezes}" required="true" requiredMessage="#{bundle.EditCondicaoPagamentoRequiredMessage_vezes}"/>
                    <h:outputLabel value="#{bundle.EditCondicaoPagamentoLabel_perJuros}" for="perJuros" />
                    <h:inputText id="perJuros" value="#{condicaoPagamentoController.selected.perJuros}" title="#{bundle.EditCondicaoPagamentoTitle_perJuros}" required="true" requiredMessage="#{bundle.EditCondicaoPagamentoRequiredMessage_perJuros}"/>
                    <h:outputLabel value="#{bundle.EditCondicaoPagamentoLabel_multa}" for="multa" />
                    <h:inputText id="multa" value="#{condicaoPagamentoController.selected.multa}" title="#{bundle.EditCondicaoPagamentoTitle_multa}" required="true" requiredMessage="#{bundle.EditCondicaoPagamentoRequiredMessage_multa}"/>
                    <h:outputLabel value="#{bundle.EditCondicaoPagamentoLabel_diasMulta}" for="diasMulta" />
                    <h:inputText id="diasMulta" value="#{condicaoPagamentoController.selected.diasMulta}" title="#{bundle.EditCondicaoPagamentoTitle_diasMulta}" required="true" requiredMessage="#{bundle.EditCondicaoPagamentoRequiredMessage_diasMulta}"/>
                    <h:outputLabel value="#{bundle.EditCondicaoPagamentoLabel_taxa}" for="taxa" />
                    <h:inputText id="taxa" value="#{condicaoPagamentoController.selected.taxa}" title="#{bundle.EditCondicaoPagamentoTitle_taxa}" required="true" requiredMessage="#{bundle.EditCondicaoPagamentoRequiredMessage_taxa}"/>
                    <h:outputLabel value="#{bundle.EditCondicaoPagamentoLabel_formaPagamento}" for="formaPagamento" />
                    <h:selectOneMenu id="formaPagamento" value="#{condicaoPagamentoController.selected.formaPagamento}" title="#{bundle.EditCondicaoPagamentoTitle_formaPagamento}" required="true" requiredMessage="#{bundle.EditCondicaoPagamentoRequiredMessage_formaPagamento}">
                        <f:selectItems value="#{formaPagamentoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{condicaoPagamentoController.update}" value="#{bundle.EditCondicaoPagamentoSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditCondicaoPagamentoViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{condicaoPagamentoController.prepareList}" value="#{bundle.EditCondicaoPagamentoShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditCondicaoPagamentoIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
